package com.zycx.system.role.controller;

import com.zycx.common.result.ServerResponse;
import com.zycx.system.role.entity.UserRole;
import com.zycx.system.role.service.UserRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Description:
 * Created by zycx on 2018-12-11 21:36
 * Created with IntelliJ IDEA.
 */
@RestController
@RequestMapping("/api/user/role")
public class UserRoleController {

    @Autowired
    private UserRoleService roleService;


    @RequestMapping("")
    public ServerResponse saveUserRole(@RequestBody UserRole userRole) {
        return roleService.saveUserRole(userRole);
    }

}
